package jui.view.extended
{
	import flash.geom.Rectangle;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFieldType;
	
	import mx.controls.TextArea;
 	
	public class JUITextArea extends TextArea
	{
		public function JUITextArea()
 		{
 			super();
 		}
		
/*		override protected function commitProperties() : void
		{
			super.commitProperties();
		}*/
		
		public function getCharIndexAtPoint(localX: Number, localY: Number): int
		{
			return textField.getCharIndexAtPoint(localX, localY);
		}
		
		public function getCharBounds(charIndex: int):Rectangle
		{
			/*textField.x = 0;
			textField.y = 0; 
			textField.border = true;
			textField.selectable = true;
			textField.autoSize = TextFieldAutoSize.LEFT;
			
			textField.multiline = true;
			textField.condenseWhite = false;
			textField.wordWrap = true;
			textField.type = TextFieldType.DYNAMIC;
			textField.embedFonts = false;
			textField.height = textField.height; 
			textField.width = textField.width; 
			
			validateNow(); */
			
			var boundsRect: Rectangle = textField.getCharBoundaries(charIndex); 
			return boundsRect;
		}
	}
}